<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>修改稿件 - ${site.name} - Powered by SM1000</title>
<link href="${resSys}/front.css" rel="stylesheet" type="text/css"/>
<script src="${resSys}/jquery.js" type="text/javascript"></script>
<script src="${resSys}/front.js" type="text/javascript"></script>
<script src="${base}/thirdparty/fckeditor/fckeditor.js" type="text/javascript"></script>
<link rel="stylesheet" type="text/css" href="/${res}/css/member.css" />
<script type="text/javascript">
$.validator.methods.leafChannel = function(value, element, param) {
	var i = element.selectedIndex;
	return $(element.options[i]).attr("class")!="sel-disabled";
}
$(function() {
	$("#jvForm").validate({
		rules: {
			channelId: {
				required: true,
				leafChannel: true
			}
		},
		messages:{
			channelId: {
				leafChannel: "请选择末级栏目"
			}
		}
	});
});
</script>
<style type="text/css">
.sel-disabled{background-color:#ccc}
.STYLE1 {color: #FF0000}
</style>
</head>

<body>
<div class="container">
<!--mc_header-->
[#include "会员中心页_页头.html"/]
<!--mc_header_end-->

<div class="main">
<!--top-->
<div class="my_local">
<div class="location_cs">
您现在的位置：&nbsp;<a class='LinkPath' href='#'>网站首页</a>&nbsp;&raquo;&nbsp;<a class='LinkPath' href='${base}/member/index.jspx'>会员中心</a>&nbsp;&raquo;&nbsp;修改稿件
</div>
</div>
<!--top_end-->

<div class="mrow box">

<!--mc_left-->
[#include "会员中心页_导航.html"/]
<!--mc_left_end-->

<!--mc_center-->
<div class="mc_center">
  <div><img src="/${res}/img/member/web_center_top.jpg" /></div>
  <div class="mc_center_bj"></div>
  <div><img src="/${res}/img/member/web_center_bottom.jpg" /></div>
</div>
<!--mc_center_end-->

<!--mc_right-->
<div class="mc_right">
   <div class="mc_top_bj box">
      <div class="page_tit">修改稿件</div>
	  <!--
	  <div class="user_info_cs">
	  <a href="${base}/member/index.jspx">会员中心首页</a> | <a href="#">退出</a>
	  </div>
	  -->
   </div>
   <div class="mc_content">  
  [#if channelList?size gt 0]
    <form id="jvForm" action="contribute_update.jspx" method="post">
     <table width="98%" border="0" align="center" cellpadding="5" cellspacing="1" bgcolor="#C8DCF0" style="margin:5px;">
       <tr>
         <td width="86" height="25" align="right" bgcolor="#FAF9FE">标题：</td>
         <td width="626" bgcolor="#FFFFFF">
		 <input type="text" name="title" value="${content.title!?html}" maxlength="150" class="required"/> <span class="STYLE1">*</span></td>
       </tr>
       <tr>
         <td height="25" align="right" bgcolor="#FAF9FE">TAGS：</td>
         <td bgcolor="#FFFFFF">
		 <input type="text" name="tagStr" value="${content.tagStr!?html}" maxlength="255"/> 用,分割</td>
       </tr>
       <tr>
         <td height="25" align="right" bgcolor="#FAF9FE">作者：</td>
         <td bgcolor="#FFFFFF"><input type="text" name="author" value="${content.author!?html}" maxlength="100"/></td>
       </tr>
       <tr>
         <td height="25" align="right" bgcolor="#FAF9FE">栏目：</td>
         <td bgcolor="#FFFFFF">
		 <select name="channelId">
			[#if channelList?size gt 0]
			[#assign origDeep=channelList[0].deep+1/]
			[#list channelList as c]
				<option value="${c.id}"[#if c.child?size gt 0] class="sel-disabled"[/#if][#if content.channel.id==c.id] selected="selected"[/#if]>[#if c.deep gte origDeep][#list origDeep..c.deep as i]&nbsp;&nbsp;[/#list]>[/#if]${c.name}</option>
			[/#list]
			[/#if]
		  </select>
         </td>
       </tr>
       <tr>
         <td height="25" align="right" bgcolor="#FAF9FE">摘要：</td>
         <td bgcolor="#FFFFFF"><textarea name="description" rows="3" cols="70" maxlength="255"/>${content.description!?html}</textarea></td>
       </tr> 
       <tr>
         <td height="25" align="right" bgcolor="#FAF9FE">内容：</td>
         <td bgcolor="#FFFFFF">
		 <script type="text/javascript">
			[#assign editorBasePath="${base}/thirdparty/fckeditor/" filemanager="${editorBasePath}editor/filemanager/browser/default/browser.html"/]
			var txt = new FCKeditor("txt");
			txt.BasePath = "${editorBasePath}";
			txt.Config["CustomConfigurationsPath"]="${base}/thirdparty/fckeditor/myconfig.js";
			
			txt.Config["LinkBrowser"] = false ;
			txt.Config["ImageBrowser"] = false ;
			txt.Config["FlashBrowser"] = false ;
			txt.Config["MediaBrowser"] = false ;
			
			txt.Config["LinkBrowserURL"] = "${filemanager}?Connector=${base}/fck/connector.jspx" ;
			txt.Config["ImageBrowserURL"] = "${filemanager}?Type=Image&Connector=${base}/fck/connector.jspx" ;
			txt.Config["FlashBrowserURL"] = "${filemanager}?Type=Flash&Connector=${base}/fck/connector.jspx" ;
			txt.Config["MediaBrowserURL"] = "${filemanager}?Type=Media&Connector=${base}/fck/connector.jspx" ;
			
			txt.Config["LinkUpload"] = true ;
			txt.Config["ImageUpload"] = true ;
			txt.Config["FlashUpload"] = true ;
			txt.Config["MediaUpload"] = true ;
			
			txt.Config["LinkUploadURL"] = "${base}/fck/upload.jspx" ;
			txt.Config["ImageUploadURL"] = "${base}/fck/upload.jspx?Type=Image" ;
			txt.Config["FlashUploadURL"] = "${base}/fck/upload.jspx?Type=Flash" ;
			txt.Config["MediaUploadURL"] = "${base}/fck/upload.jspx?Type=Media" ;
			
			txt.ToolbarSet="My";
			txt.Height=200;
			txt.Value="${content.txt!?js_string}";
			txt.Create();
		</script>
		 </td>
       </tr> 
       <tr>
         <td height="25" colspan="2" align="center" bgcolor="#FFFFFF">
			<input type="hidden" name="nextUrl" value="contribute_list.jspx"/>
			<input type="hidden" name="id" value="${content.id}"/>
			<input type="submit" value="提交"/> <input type="reset" value="重置"/>
		 </td>
         </tr>
     </table>
	 </form>
	[#else]
	<div>系统不允许投稿，请联系管理员！</div>
	[/#if]
   </div>

</div>
<!--mc_right_end-->

</div>
</div>

<!--footer-->
[#include "会员中心页_页脚.html"/]
<!--footer_end-->

</div>
</body>
</html>